# -- coding: utf-8 --
from tools.Request_General import BaseAPI


class SmartList(BaseAPI):
    """
    值列表相关接口
    """

    def smart_list(self, par):
        """获取单个值列表数据"""
        r = self.request_send(params=par)
        return r

    def batch_get_member_desc(self, par):
        """批量获取多个值列表多个成员的描述"""
        r = self.request_send(json=par)
        return r

    def smart_list_list(self, pay):
        """批量获取多个值列表数据"""
        r = self.request_send(json=pay)
        return r

    def smart_list_page(self, par):
        """值列表成员模糊查询-可分页"""
        r = self.request_send(params=par)
        return r

    def smart_list_add(self, pay):
        """新增单个值列表"""
        r = self.request_send(json=pay)
        return r

    def smart_list_update(self, pay):
        """
        更新单个值列表
        """
        r = self.request_send(json=pay)
        return r
